package com.carkeeper.service;

import com.carkeeper.dto.StoreDTO;
import com.carkeeper.service.serviceFallback.StoreFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "carkeeper-shop", fallbackFactory = StoreFallbackFactory.class)
public interface StoreFeign {
    @GetMapping("/store/{id}")
    StoreDTO queryStoreById(@PathVariable("id") Long id);
}
